package xxl.ioc.dependencyproviders 
{
	import flash.utils.Dictionary;
	import xxl.ioc.Injector;
	import xxl.ioc.mapping.InjectionMapping;
	/**
	 * ...
	 * @author XXL
	 */
	public class OtherMappingProvider implements IDependencyProvider 
	{
		private var _mapping:InjectionMapping;
		
		public function OtherMappingProvider(mapping:InjectionMapping) 
		{
			_mapping = mapping;
		}
		
		/* INTERFACE xxl.ioc.dependencyproviders.IDependencyProvider */
		
		public function apply(targetType:Class, activeInjector:Injector, injectParameters:Dictionary):Object 
		{
			return _mapping.getProvider().apply(targetType, activeInjector, injectParameters);
		}
		
		public function destroy():void 
		{
			
		}
		
	}

}